package com.xtedu.examproject.dao.base;

import com.xtedu.examproject.entity.Student;
import com.xtedu.examproject.entity.StudentQuery;
import com.xtedu.examproject.util.PageHelper;

import java.util.List;

public interface StudentDao extends BaseDao<Student> {
    //获取老师所在班级中非用户的学生
    List<Student> findNonUserStu(int teacherId) throws Exception;

    //获取所有非用户学生
    List<Student> findNonUserStu() throws Exception;

    //通过查询条件获取学生
    List<Student> searchStudents(Student stu) throws Exception;

    //通过查询条件获取学生
    List<Student> searchStudents(String keyWord, int gender, String classID, String eduBackground) throws Exception;

    //查询班级学生
    PageHelper<Student> findStudentsByClassIdByPage(int pageIndex, int pageSize, int classId) throws Exception;
}
